{% if error %}
    <div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
{{ dump() }}
<form action="{{ path('fortend_login') }}" method="post">
    <label for="username">Username:</label>
    <input type="text" id="username" name="_username" value="{{ last_username }}" />

    <label for="password">Password:</label>
    <input type="password" id="password" name="_password" />

    {#
        If you want to control the URL the user
        is redirected to on success (more details below)
        如果你要控制“用户成功登录后被重定向的URL”的话（下文有更多细节）
        <input type="hidden" name="_target_path" value="/account" />
    #}

    <button type="submit">login</button>
</form>